﻿using AiChiTu.TraceabilitySystem.Domain.AiChiTuManagement;
using AiChiTu.TraceabilitySystem.Write.API.Applications.Commands.Breedings;
using AiChiTu.TraceabilitySystem.Write.API.Applications.Commands.ProductBasices;
using AutoMapper;

namespace AiChiTu.TraceabilitySystem.Write.API
{
	/// <summary>
	/// 映射轮廓
	/// </summary>
	public class MappingProfiles : Profile
	{
		/// <summary>
		/// 建立映射关系
		/// </summary>
		public MappingProfiles()
		{
			CreateMap<CreateProductBasicsCommand, ProductBasics>().ReverseMap();
			CreateMap<UpdateBreedingCommand, Breeding>().ReverseMap();
		}
	}
}
